package com.example.snow.controller;

import com.example.snow.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping(value = "/snowflake")
    public String index(){
        return orderService.getIdBySnowFlake();
    }
}
